package p.ithorns.support.license.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * LicenseQo
 * 许可证授权
 *
 * @author Ht.L
 * @date 2023-11-23 17:30
 * @since 1.0.0
 */
@Getter
@Setter
public class License implements Serializable {

    /**
     * 授权码
     */
    protected String authCode;

    /**
     * 到期时间
     */
    protected LocalDateTime expiration;

    /**
     * 授权参数
     */
    protected String param;

    /**
     * 授权时间
     */
    protected LocalDateTime grantTime;

    /**
     * 是否已使用
     */
//    protected boolean use;

    public License() {}


    @Override
    public String toString() {
        return "{" +
                "authCode:'" + authCode + '\'' +
                ", expiration:" + expiration +
                ", param:'" + param + '\'' +
                ", grantTime:" + grantTime +
                "}";
    }
}